package com.open.capacity.nk.controller;

import com.open.capacity.commons.PageResult;
import com.open.capacity.nk.service.NkMaterialpurchasereceiptService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author
 * @email
 * @date 2023-03-01 22:09:01
 */
@RestController
@RequestMapping("materialpurchaseReceipts")
@Api(tags = "")
public class NKMaterialPurchaseReceiptController {

    @Autowired
    private NkMaterialpurchasereceiptService receiptService;

    /**
     * 耗材申请明细列表
     */
    @RequestMapping("/pageAll")
    public PageResult pageAll(@RequestParam Map<String, Object> params) {
        return receiptService.pageAll(params);
    }
}
